<template>
  <div>
    <van-nav-bar
      title="设置"
      left-arrow
      @click-left="onClickLeft" />
      <van-cell title="设置密码" is-link @click="shezhimima" />
         <van-button type="warning" @click="logout">退出登录</van-button>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  props: [],
  data() {
    return {};
  },
  mounted() {},
  methods: {
    onClickLeft() {
      this.$router.push("/personal");
    },
    logout(){
        sessionStorage.removeItem('userInfo')
    },
    shezhimima(){
        this.$router.push('/shezhimima')
    },
  },
  computed: {},
  watch: {},
  created() {},
};
</script>

<style scoped>
</style>
